﻿<%@ Page Title="查看留言" Language="C#"  MasterPageFile="~/MasterPage/Foreground.Master" AutoEventWireup="true" CodeBehind="ViewMessage.aspx.cs" Inherits="Planetwork.ViewMessage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style>
       #showMessage{
           width: 250px;
           height: 300px;
           margin: 10px;
           text-align:center;
           box-shadow: 0 0 5px orange;
           background-color: rgba(254,208,190,0.3);
          
       }
        #showMessage:hover{
            width: 260px;
            height: 310px;
            box-shadow: 0 0 5px green;
        }
       #showMessage #author{
           height:25%;
           line-height:50px;
       }
       #showMessage #content{
           height:70%;       
       }
       .breadcrumb a, a:hover{
           color:black;
           text-decoration:none;
       }
      
    </style>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">   
    <br />

    <ul class="breadcrumb">
        <li><a href="../Home/Home.aspx"><span class="glyphicon glyphicon-home"></span> 首页</a></li>
        <li class="active">查看留言</li>
    </ul>

    <div class="col-sm-12 col-cneter-block" style="background-color:#f5f5f5">
        <asp:DataList runat="server" ID="showMessages" RepeatColumns="4" CellPadding="10">
            <ItemTemplate>
                <div id="showMessage">
                    <div id="author"><p> <%# Eval("Author") + "  留言于<br/>" + Eval("ReviewDate") %> </p></div>           
                  
                      <hr style=" height:2px;border:none;border-top:2px dotted #ff6a00;" />
                   
                     <div id="content"> <%# Eval("Content") %> </div>
                </div>
            </ItemTemplate>
        </asp:DataList>
    </div>

    <script type="text/javascript">
        
    </script>
</asp:Content>
